﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Default.Master" Inherits="System.Web.Mvc.ViewPage<WebStickyNotes.Models.TaskAuditIndexModel>" %>
<%@ Import Namespace="WebStickyNotes.Resources" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%= Labels.PageTitleAudit %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <article>
        <header>
            <h2><%= Labels.PageTitleAudit %></h2>
        </header>
        <section>
            <div id="taskdetails" class="hastable">
                <form method="get" action="<%= Url.Action("TaskAuditSearch") %>">
                    <p><label><%= Html.TextBox("searchTerm", Model.SearchTerm) %></label> <input type="submit" value="Search" class="ajaxsearch" /></p>
                </form>
                <table>
                    <thead>
                        <tr>
                            <th><%= Labels.Title %></th>
                            <th><%= Labels.AuditFor %></th>
                            <th><%= Labels.ChangedBy %></th>
                            <th><%= Labels.Date %></th>
                        </tr>
                    </thead>
                    <tbody>
                        <% Html.RenderPartial("TaskAuditList", Model); %>
                    </tbody>
                </table>
            </div>
        </section>
        <footer>
            <%= WebStickyNotes.Helpers.PagingHelper.ShowPageLinks(Model.PagingLink, "pages", Model.CurrentPage, Model.PageSize, Model.TotalRecords) %>
        </footer>
    </article>
</asp:Content>

<asp:content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        var searchAddress = "<%= Url.Content("~/Admin/AjaxTaskAudits") %>";
    </script>
</asp:content>